<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>下载文件示例</title>
    <script>
        console.log("下载文件示例")
        //使用ipc.on监听事件
        ipc.on("downloadUpdateDemo", function (id, suggestedFileName, receivedBytes, totalBytes) {
            console.log(id, suggestedFileName, receivedBytes, totalBytes)
            var downloadMessage = document.getElementById("downloadMessage")
            downloadMessage.innerHTML = downloadMessage.innerHTML + ("id: " + id + "  suggestedFileName: " + suggestedFileName + "  receivedBytes: " + receivedBytes + " / totalBytes: " + totalBytes) + "<br>"
        });
    </script>
</head>
<body style="overflow: hidden;margin: 10px;padding: 10px;">
<h3>download:</h3><br>
<a href="https://gitee.com/energye/liblcl/releases/download/v2.3.5/liblcl-109.Windows32.zip">Windows 32 bits</a>
<br>
<a href="https://gitee.com/energye/liblcl/releases/download/v2.3.5/liblcl-109.Windows64.zip">Windows 64 bits</a>
<br>
<a href="https://gitee.com/energye/liblcl/releases/download/v2.3.5/liblcl.Linux64.zip">Linux x86 64 bits</a> <br>
<a href="https://gitee.com/energye/liblcl/releases/download/v2.3.5/liblcl.MacOSX64.zip">MacOSX x86 64 bits</a> <br>
<div id="downloadMessage">

</div>
</body>
</html>